package com.baoyouqun.service;

import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baoyouqun.domain.CreateCmd.ResourceTypeCreateCmd;
import com.baoyouqun.domain.Query.ResourceTypeQuery;
import com.baoyouqun.domain.UpdateCmd.ResourceTypeUpdateCmd;
import com.baoyouqun.domain.VO.ResourceTypeVO;
import com.baoyouqun.entity.ResourceType;


public interface ResourceTypeService extends IService<ResourceType> {

    /**
     * 新增并返回实体
     */
    SingleResponse<ResourceTypeVO> create(ResourceTypeCreateCmd cmd);

    Response update(ResourceTypeUpdateCmd cmd);

    /**
     * 根据ID查询VO
     */
    ResourceTypeVO selectById(String id);

    /**
     * 分页查询VO
     */
    IPage<ResourceTypeVO> pageVo(ResourceTypeQuery query);
}